package com.itheima.service;

import com.itheima.POJO.Food;
import com.itheima.POJO.HealthScheme;
import com.itheima.POJO.Sport;
import com.itheima.POJO.Template;
import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;

import java.util.List;

/**
 * @auther zhaorui
 * @date 2019-12-05 - 16:06
 */
public interface TemplateService {

    public void add(Template template, Integer[] healthIds, Integer[] foodIds, Integer[] sportIds);

    public PageResult findPage(QueryPageBean queryPageBean);

    public void forbiddenById(Integer id, String status);

    public List<HealthScheme> findAllHealth();

    public List<Sport> findAllSport();

    public List<Food> findAllFood();


    public void setTemplateAndHealthScheme(Integer templateId, Integer[] healthIds);

    public void setTemplateAndFood(Integer templateId, Integer[] foodIds);

    public void setTemplateAndSport(Integer templateId, Integer[] sportIds);

    public Template findTemplateById(Integer id);

    List<Integer> findTemplateAndSportByTemplateId(Integer id);

    List<Integer> findTemplateAndFoodByTemplateId(Integer id);

    public List<Integer> findTemplateAndHealthByTemplateId(Integer id);

    public void edit(Template template, Integer[] healthIds, Integer[] foodIds, Integer[] sportIds);

    public void delete(Integer id);
}
